#ifndef CLIENTSOCKET_H
#define CLIENTSOCKET_H

#include <QTcpSocket>
#include "captchas/captchadesc.h"
#include <QTimer>
#include <QVector>

class ClientSocket : public QObject
{
    Q_OBJECT
    QTcpSocket *socket;
    QTimer cliTimer;
    QVector<CaptchaDesc*> capList;
public:
    //explicit ClientSocket(QObject *parent = 0);
    ClientSocket(QTcpSocket*,QObject *parent = 0);
    void question(CaptchaDesc*);
    ~ClientSocket();
signals:
    void toBeDeleted(ClientSocket*);
    void solved(int, QString);
public slots:
    void readyRead();
    void timeout();

};

#endif // CLIENTSOCKET_H
